package com.mango.game.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 命名空间
 * </p>
 *
 * @author Mango
 * @since 2025-02-24
 */
@TableName("name_space")
public class NameSpace implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 空间唯一标识
     */
    @TableId("uid") // @TableId(value = "uid", type = IdType.ASSIGN_ID)
    private Long uid;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @TableField("updated_at")
    private LocalDateTime updatedAt;

    /**
     * 空间名称（唯一）
     */
    @TableField("name")
    private String name;

    /**
     * 描述标签
     */
    @TableField("label")
    private String label;

    /**
     * 状态：0-停用 1-启用
     */
    @TableField("status")
    private Boolean status;

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "NameSpace{" +
        "uid = " + uid +
        ", createdAt = " + createdAt +
        ", updatedAt = " + updatedAt +
        ", name = " + name +
        ", label = " + label +
        ", status = " + status +
        "}";
    }
}
